import React,{Fragment} from 'react';
import ReactDOM from 'react-dom';
import {BrowserRouter as Router,Route} from 'react-router-dom'
import { Provider } from 'react-redux';
import store from './pages/store';

// import App from './App';
import Xiaojiejie from './Xiaojiejie'
import PageIndex from './pages/index'
function App(){
    return(
        <Fragment>
            <Router>
                <Route path="/" exact component={Xiaojiejie}></Route>
                <Route path="/pageIndex/" component={PageIndex}></Route>
            </Router>
        </Fragment>
    )
}

ReactDOM.render(
    <Provider store={store}>
        <App/>
    </Provider>
    ,document.getElementById('root'))